<%@page import="com.demoweb.model.dto.Member"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>




    <div id="header1">
            <div class="title">
                <a href="/demoweb/candy/canbyMain.nhn">candy WEBSITE</a>
            </div>
            <div class="links">
            	<%
            		if (session.getAttribute("loginuser") == null) { //로그인 하지 않은 경우
            	%>
                	<a href="/demoweb/account/loginform.action">로그인</a>
                	<a href="/demoweb/member/registerform.action">등록</a>
                <%
                	} else {
                %>
                	<%
                		Member member = (Member)session.getAttribute("loginuser");
                	%>
                	<%= member.getMemberId() %>님 환영합니다                
                	<a href="/demoweb/account/logout.action">로그아웃</a>
                <% } %>
            </div>
        </div>        

  <div id="header-wrapper">

	<div id="header" class="container">
		<div id="logo">
        	<span class="icon icon-cog"></span>
			<h1><a href="#"> candycrushsaga </a></h1>
		</div>
		
		<div id="menu">
			<ul>
				<li class="active"><a href="#" accesskey="1" title="">Homepage</a></li>
				<li><a href="/demoweb/candy/list.action" accesskey="2" title="">Item Chart</a></li>
				<li><a href="https://king.com/?type=partner&subtype1=microsites&subtype2=candycrushsaga.com#!/play/candycrush" accesskey="3" title="">gamePlay</a></li>
				<li><a href="/demoweb/candy/candytwitlist.action" accesskey="4" title="">GAMEFORUM</a></li>
				<li><a href="#" accesskey="5" title="">Contact Us</a></li>
			</ul>
		</div>
	</div>
</div>
        
        
        
        
        
        
        
        
        
        
        
        
        
        